<div class="view-header">
    <div class="view-header-left">
        <div class="view-header-item color-open" title="添加车型" ng-click="new_vehicle = !new_vehicle" ng-show="!new_vehicle && !update_cover">
            <i class="fa fa-plus"></i> 添加车型
        </div>

        <!-- add -->
        <div class="view-header-item color-close above-cover no-widen" title="关闭" ng-click="new_vehicle = !new_vehicle" ng-show="new_vehicle">
            <i class="fa fa-close"></i>
        </div>
        <div class="view-header-item color-check above-cover" title="保存" ng-click="new_model_add()" ng-show="new_vehicle">
            <i class="fa fa-check"></i> 提交车型
        </div>
        
        <!-- edit -->
        <div class="view-header-item color-close above-cover no-widen" title="修改关闭" ng-click="update_cover = !update_cover" ng-show="update_cover">
            <i class="fa fa-close"></i>
        </div>
        <div class="view-header-item color-check above-cover" title="修改保存" ng-click="update_data_submit()" ng-show="update_cover">
            <i class="fa fa-check"></i> 确认修改
        </div>
    </div>
</div>
<div class="view-content reception-content">
    <div ag-grid="grid" class="ag-fresh ag-custom-center" style="height:100%"></div>
</div>

<!-- add -->
<div class="data-overlay" ng-show='new_vehicle'>
    <div class="overlay-container">
        <div class="overlay-header">添加车型</div>
        <div ng-form name="vehicle_models_add" novalidate="novalidate">
            <div class="overlay-content">
                <div class="overlay-column overlay-column-3">
                    <div class="overlay-item">
                        <span class="overlay-name">品牌</span>
                        <input type="text" ng-model="new_model.brand" />
                    </div>
                    <div class="overlay-item">
                        <span class="overlay-name">车型</span>
                        <input type="text" ng-model="new_model.model">
                    </div>
                </div>
                <div class="overlay-column overlay-column-3">
                    <div class="overlay-item">
                        <span class="overlay-name">型号</span>
                        <input type="text" ng-model="new_model.version">
                    </div>
                    <div class="overlay-item">
                        <span class="overlay-name">编号</span>
                        <input type="text" ng-model="new_model.sn">
                    </div>
                </div>
                <div class="overlay-column overlay-column-3">
                    <div class="overlay-item">
                        <span class="overlay-name">指导价</span>
                        <input type="number" min="0" step="100" ng-model="new_model.msrp">
                    </div>
                    <div class="overlay-item">
                        <span class="overlay-name">成本价</span>
                        <input type="number" min="0" step="100" ng-model="new_model.cost">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- edit -->
<div class="data-overlay" ng-show='update_cover'>
    <div class="overlay-container">
        <div class="overlay-header">修改车型</div>
        <div ng-form name="vehicle_models_edit" novalidate="novalidate">
            <div class="overlay-content">
                <div class="overlay-column overlay-column-3">
                    <div class="overlay-item">
                        <span class="overlay-name">品牌</span>
                        <input type="text" ng-model="update_data.brand" />
                    </div>
                    <div class="overlay-item">
                        <span class="overlay-name">车型</span>
                        <input type="text" ng-model="update_data.model">
                    </div>
                </div>
                <div class="overlay-column overlay-column-3">
                    <div class="overlay-item">
                        <span class="overlay-name">型号</span>
                        <input type="text" ng-model="update_data.version">
                    </div>
                    <div class="overlay-item">
                        <span class="overlay-name">编号</span>
                        <input type="text" ng-model="update_data.sn">
                    </div>
                </div>
                <div class="overlay-column overlay-column-3">
                    <div class="overlay-item">
                        <span class="overlay-name">指导价</span>
                        <input type="number" min="0" step="100" ng-model="update_data.msrp">
                    </div>
                    <div class="overlay-item">
                        <span class="overlay-name">成本价</span>
                        <input type="number" min="0" step="100" ng-model="update_data.cost">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- 修改车型数据 -->
<!-- <div class="new-cover" ng-show='update_cover'>
    <div class="new-container">
        <div ng-form name="reception_add" novalidate="novalidate">
            <div class="new-header new-header-color">修改车型</div>
            <div class="new-content">
                <div class="new-block">
                    <div class="new-item">
                        <span>品牌</span>
                        <input type="text" ng-model="update_data.brand" />
                    </div>
                    <div class="new-item">
                        <span>车型</span>
                        <input type="text" ng-model="update_data.model">
                    </div>
                </div>
                <div class="new-block">
                    <div class="new-item">
                        <span>型号</span>
                        <input type="text" ng-model="update_data.version">
                    </div>
                    <div class="new-item">
                        <span>编号</span>
                        <input type="text" ng-model="update_data.sn">
                    </div>
                </div>
                <div class="new-block">
                    <div class="new-item">
                        <span>指导价</span>
                        <input type="text" ng-model="update_data.msrp">
                    </div>
                    <div class="new-item">
                        <span>成本价</span>
                        <input type="text" ng-model="update_data.cost">
                    </div>
                </div>
            </div>
        </div>
    </div>
</div> -->




<!-- 修改车型 -->
<!-- <div class="common-cover" ng-show='update_cover'>
    <div class="container-fluid common-cover-main"
         ng-click="$event.stopPropagation()">
        <div class="row common-header">
            <div class="col-xs-2">修改车型</div>
            <i class="glyphicon glyphicon-remove common-close"
               ng-click="update_cover = !update_cover"></i>
        </div>
        <div class="row">
            <div class="row col-md-12">
                <div class="col-md-3 common-block">
                    <div class="common-block-row">
                        <label>品牌</label>
                        <input type="text" ng-model="update_data.brand">
                    </div>
                </div>
                <div class="col-md-3 common-block">
                    <div class="common-block-row">
                        <label>车型</label>
                        <input type="text" ng-model="update_data.model">
                    </div>
                </div>
                <div class="col-md-3 common-block">
                    <div class="common-block-row">
                        <label>型号</label>
                        <input type="text" ng-model="update_data.version">
                    </div>
                </div>
                <div class="col-md-3 common-block">
                    <div class="common-block-row">
                        <label>SN</label>
                        <input type="text" ng-model="update_data.sn">
                    </div>
                </div>
                <div class="col-md-3 common-block">
                    <div class="common-block-row">
                        <label>MSRP</label>
                        <input type="text" ng-model="update_data.msrp">
                    </div>
                </div>
                <div class="col-md-3 common-block">
                    <div class="common-block-row">
                        <label>成本价</label>
                        <input type="text" ng-model="update_data.cost">
                    </div>
                </div>
            </div>

        </div>
        <div class="row border-top">
            <div class="col-xs-12 common-head-content">
                <input type="submit" class="common-button-submit right"
                       value="确认修改" ng-click='update_data_submit()'>
            </div>
        </div>
    </div>
</div> -->

